var resend = null;
function getCountTime(that){
    var _that = that
    var countTime = 60;
   clearInterval(resend)
    resend = setInterval(function(){
        countTime--;
        if(countTime>=0){
          _that.setData({
              countTime:countTime
          })
        }else{
            clearInterval(resend);
        }
    },1000)
}
module.exports = {
    getCountTime:getCountTime
}